package com.lambda;

public class AnalyseImpl<K,V> {

    public <V> V anylyseResult(K k1, K k2){
        V result = null;
        int res = 0;
        if(k1 instanceof Integer){
            res = (Integer) k1 + (Integer) k2;
        }else if (k1 instanceof String){
            res = k1.hashCode() + k2.hashCode();
        }
        result = (V) (Object)res;
        return result;
    }
}
